package org.batatasframework.immadiate;

import org.batatasframework.support.AbstractSupportDefinition;

import cn.bonoon.entities.ImmediateTaskEntity;

public class ImmadiatePlanDefinition extends AbstractSupportDefinition{
	
	private ImmediateTaskHandler<? extends ImmediateTaskEntity> handler;
	private String vmpath;
	
	public ImmadiatePlanDefinition(String key, String name/*, String vmpath*/){
		super(key, name/*, vmpath*/);
	}
	
	public void setHandler(ImmediateTaskHandler<? extends ImmediateTaskEntity> handler) {
		this.handler = handler.initialize(this);
	}
	
	public ImmediateTaskHandler<? extends ImmediateTaskEntity> getHandler() {
		return handler;
	}

	public String getVmpath() {
		return vmpath;
	}

	public ImmadiatePlanDefinition vm(String vmpath) {
		this.vmpath = vmpath;
		return this;
	}
}
